<B:UIWS x:Class="WPFExcelReport.UWS05"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                   xmlns:B="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                 xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                 xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
          Loaded="Window_Loaded"
                    Background="White"   
      >
    <B:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </B:UIWS.Resources>
    <StackPanel >
        <WrapPanel Margin="0,0,0,0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <!--TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=面料:}}"></TextBlock-->
                <Button Visibility="{Binding IsMaster,ElementName=TV,Converter={StaticResource bv}}" Grid.Column="1" 
                        Click="ManageCommand" Width="24" Height="20" HorizontalAlignment="Left"  >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
                    </Button.Background>
                </Button>
            </Grid> 
        </WrapPanel>
        <WrapPanel Margin="0,10,0,0">
            <Grid  Margin="10,10,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0"  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=幅宽:}}"></TextBlock>
                <TextBlock  Grid.Row="0" Grid.Column="1"   
                                Text="{Binding WAFBRTU,Converter={StaticResource ResourceKey=d10}}" MinWidth="40" Width="Auto" />
                <TextBlock Grid.Row="0"  Grid.Column="2" Text="{Binding Source={Localization:Translate Word=CM}}"></TextBlock>
                <TextBlock   Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=可用幅宽:}}"></TextBlock>
                <TextBlock  Grid.Row="1" Grid.Column="1" Text="{Binding WAFBRTL,Converter={StaticResource ResourceKey=d10}}"
                                    MinWidth="40" Width="Auto" />
                <TextBlock Grid.Row="1"  Grid.Column="2" Text="{Binding Source={Localization:Translate Word=CM}}"></TextBlock>
            </Grid>
            <Grid  Margin="10,10,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock  Grid.Row="0" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=克重:}}"></TextBlock>
                <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding WARGRLFD}" 
                           MinWidth="40" Width="Auto" VerticalAlignment="Top" />
                <TextBlock Grid.Row="0"  Grid.Column="2" Text="{Binding Source={Localization:Translate Word=g/m}}"></TextBlock>
                <TextBlock  Grid.Row="1"  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=克重:}}"></TextBlock>
                <TextBlock  Grid.Row="1" Grid.Column="1"  Text="{Binding WAFGRQM}"  
                                 MinWidth="40" Width="Auto" />
                <TextBlock Grid.Row="1"  Grid.Column="2" Text="{Binding Source={Localization:Translate Word=g/sqm}}"></TextBlock>
            </Grid>
            <Grid  Margin="10,10,0,0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Row="0"  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=经密:}}" ></TextBlock>
                <TextBlock  Grid.Row="0"  Grid.Column="1"  
                                VerticalAlignment="Top"  
                                Text="{Binding WAFFDDIK,Converter={StaticResource ResourceKey=d100}}"  MinWidth="40" Width="Auto" />
                <TextBlock   Grid.Row="0" Grid.Column="2"    Text="{Binding WAFDDIM}"  Width="Auto" />
                <TextBlock  Grid.Row="1"  Grid.Column="0" Text="{Binding Source={Localization:Translate Word=纬密:}}"></TextBlock>
                <TextBlock Grid.Row="1"  Grid.Column="01"  
                               Text="{Binding WAFFDDIS,
                    Converter={StaticResource ResourceKey=d100}}"  MinWidth="40" Width="Auto" /> 
            </Grid>

        </WrapPanel>
    </StackPanel> 
</B:UIWS>
